package com.weseewe.groupon.web.user.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

    @GetMapping("/")
    public String index() {
        System.out.println("index==========");
        return "index";
    }

    @GetMapping("/hello")
    @ResponseBody
    public String hello() {
        System.out.println("hello==========");
        return "hello";
    }

    @GetMapping("/index")
    public String indexView() {
        System.out.println("indexView==========");
        return "index";
    }
}
